package cn.usian.jyzx.order.mapper;

import cn.usian.jyzx.model.entity.order.OrderInfo;

import java.util.List;

/**
 * @TODO:
 * @Author:baimu
 * @Date:2024 11 08 10 07
 **/
public interface OrderInfoMapper {

    int save(OrderInfo orderInfo);


    OrderInfo findOrderByOrderSn(String orderSn);

    OrderInfo findOrderByOrderId(Long orderId);
    List<OrderInfo> findOrderByUserIdAndOrderSatus(Long userId, Integer orderStatus);

    int updateOrderStatus(String orderNo, Integer status);
}
